<?xml-stylesheet type="text/xsl"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
	<xsl:template match="/">
		<html>
			<head>
				<link rel="stylesheet" type="text/css" href="ppc.css" />
			</head>
			<body>
				<p class="title">Basic Report</p>
				
				<xsl:apply-templates match="statistics"/>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="log">
	</xsl:template>
	
	<xsl:template match="statistics">
		<div class="statistics">
			<p>The time slices in the streams below are ordered by the the total cumulative duration of each slice (in seconds).</p>
			<xsl:apply-templates match="stream" />
		</div>
	</xsl:template>

	<xsl:template match="stream">
		<table>
			<tr><td colspan="3" class="stream-name"><xsl:value-of select="@name"/></td></tr>
			<xsl:for-each select="slice">
				<tr>
					<td class="name"><xsl:value-of select="@name"/></td>
					<td class="count"><xsl:value-of select="@count"/></td>
					<td class="duration"><xsl:value-of select="@duration"/></td>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>

</xsl:stylesheet>